package pattern.structrual.template;

/**
 * @Author Gavin
 * @date 2020.07.17 12:41
 */
public abstract class Template {
    final void templateMethod() {
        first();
        second();
        third();
    }

    final void first() {
        System.out.println("第一步固定干什么");
    }

    final void second() {
        System.out.println("第二步固定干什么");
    }

    abstract void third();
}
